package com.topnav.mc.exception;

/**
 * @Author: kenny
 * @Date: 2024/3/13 14:51
 */
public enum WvpException {
     ERROR_WVP_ERROR200(125200, "失败","失败")
    ,ERROR_WVP_ERROR201(125201, "点播超时","点播超时")
    ,ERROR_WVP_ERROR202(125202, "未找到可用的zlm","未找到可用的zlm")
    ,ERROR_WVP_ERROR203(125203, "单端口收流时不支持TCP主动方式收流","单端口收流时不支持")
    ,ERROR_WVP_ERROR204(125204, "点播失败， redis缓存streamId等于null","点播失败， redis")
    ,ERROR_WVP_ERROR205(125205, "点播未找到","点播未找到")
    ,ERROR_WVP_ERROR206(125206, "未找到视频流信息, 视频流可能已经停止","未找到视频流信息, 视频流可能已经停止")
    ,ERROR_WVP_ERROR207(125207, "转码失败","转码失败")
    ,ERROR_WVP_ERROR208(125208, "使用的流媒体已经停止运行","使用的流媒体已经停止运行")
    ,ERROR_WVP_ERROR209(125209, "命令发送失败","命令发送失败")
    ,ERROR_WVP_ERROR210(125210, "语音广播操作超时, 设备未返回应答指令","语音广播操作超时, 设备未返回应答指令")
    ,ERROR_WVP_ERROR211(125211, "设备超时无回应","设备超时无回应")
    ,ERROR_WVP_ERROR212(125212, "不存在要关闭的语音流","不存在要关闭的语音流")
    ,ERROR_WVP_ERROR213(125213, "设备不存在","设备[")
    ,ERROR_WVP_ERROR214(125214, "命令发送失败","命令发送失败:")
    ,ERROR_WVP_ERROR215(125215, "流媒体不存在","流媒体：")
    ,ERROR_WVP_ERROR216(125216, "不存在的设备","不存在的设备ID")
    ,ERROR_WVP_ERROR217(125217, "设备正在使用","设备正在使用：")
    ,ERROR_WVP_ERROR218(125218, "设备正在对讲中","设备正在对讲中：")
    ,ERROR_WVP_ERROR219(125219, "语音广播操作失败","语音广播操作失败，错误码：")

    /*设备[" + deviceId + "]不存在
	 * 命令发送失败: " + e.getMessage()
            * 流媒体：" + mediaServerId + "不存在"
            * 不存在的设备ID: %s",deviceId
            * 设备正在使用：%s",deviceId)
            * 设备正在对讲中：%s",deviceId)
            * 语音广播操作失败，错误码：*/

    ;
    public Integer code;
    public String desc;
    public String like;

    private WvpException(Integer code, String desc,String like) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {return code;}
    public void setCode(Integer code) {this.code = code;	}
    public String getDesc() {return desc;}
    public void setDesc(String desc) {this.desc = desc;}
    public void setLike(String like) {this.like = like;}
    public String getLike() {return like;}
}
